#include <iostream>
using namespace std;

int main() {
    int num;
    int space;
    char icon;
    cin >> icon;

    for (int i = 1; i <= 3; i++) {
        num = 2 * i - 1;
        space = 3 - i;
        if (space > 0)
        {
            for (int i = 0; i < space; i++)
            {
                cout << " ";
            }
        }
        for (int i = 0; i < num; i++)
        {
            cout << icon;
        }
        if (space > 0)
        {
            for (int i = 0; i < space; i++)
            {
                cout << " ";
            }
        }
        cout << endl;
    }
    return 0;
}